/***
 * $HeadURL: http://gstestbbs.googlecode.com/svn/trunk/sfmforum/src/main/java/com/sfmforum/core/util/listener/SfmForumContextListener.java $
 * 
 **/
package com.sfmforum.core.util.listener;

import java.util.Locale;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import com.sfmforum.core.log.util.SfmForumLoggerResourcesLoader;
import com.sfmforum.core.util.config.SfmForumManager;

/***
 * @author $Author: nathanliaogs@gmail.com $
 * @version $Revision: 22 $
 * @modified $Date: 2012-03-25 16:14:59 +0000 (Sun, 25 Mar 2012) $
 * 
 **/
public class SfmForumContextListener implements ServletContextListener {

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * javax.servlet.ServletContextListener#contextInitialized(javax.servlet
	 * .ServletContextEvent)
	 */
	@Override
	public void contextInitialized(ServletContextEvent sce) {
		// load log properties
		SfmForumLoggerResourcesLoader.loadproperties(SfmForumManager
				.getLocale());
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see javax.servlet.ServletContextListener#contextDestroyed(javax.servlet.
	 * ServletContextEvent)
	 */
	@Override
	public void contextDestroyed(ServletContextEvent sce) {

	}

}
